#ifndef	__MLIST__
#define __MLIST__
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include"CMD.H"
typedef enum ListType{LargeHead,LargeTail} ListType;
typedef struct Node
{
	int value;
	struct Node *next;
} Node;

typedef struct MList
{
	Node *head;
	Node *tail;
	int count;
	ListType lType;
	CRITICAL_SECTION cs;
	char* name;
} MList;

//struct MList * createMList(ListType lType) ;
struct MList * createMList(ListType lType,char* name);
int M_first(MList *list);
void M_insert(int value, struct MList *list);
int M_pop(struct MList *list);
int M_count(struct MList *list);
int M_hasElements(struct MList *list);
void printMList(struct MList *list);
#endif